#!/usr/bin/env python
#coding:utf-8

from ospath import ospath

import os

export = []
for root, dirs, files in os.walk(ospath):
    export.append( "\n root: %s;Dirs: %s;Files: %s" % (root, dirs, files)) 
    open('mycd.cdc', 'w').write(''.join(export))

